05889f2361e419bd6b4ec398f66fb8cf0280eee1,source/com/intellij/openapi/progress/util/ProgressWindow.java,MyDialog,show,#,458
Before Change
myPopup = JBPopupFactory.getInstance().createComponentPopupBuilder(myPanel, myCancelButton)
.setForceHeavyweight(true)
.setRequestFocus(true)
.createPopup();
myPopup.showInCenterOf(myParentWindow);
StackingPopupDispatcher.onPopupHidden(myPopup); // Mouse click hiding is not necessary.
After Change
myPopup = JBPopupFactory.getInstance().createComponentPopupBuilder(myPanel, myCancelButton)
.setForceHeavyweight(true)
.setRequestFocus(true)
.setCancelCallback(new Computable<Boolean>() {
public Boolean compute() {
return isCanceled() || !isRunning();
}
}).createPopup();
myPopup.showInCenterOf(myParentWindow);
StackingPopupDispatcher.onPopupHidden(myPopup); // Mouse click hiding is not necessary.